package com.loadmore.common.router

import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import java.io.Serializable

object Router {
    fun go(module:String,data:Any?) {
        var bundle = Bundle()
        bundle.putString("module",module)
        bundle.putSerializable("data", data as Serializable?)
        ARouter.getInstance().build(RouterPath.Module).with(bundle).navigation()
    }
    fun activty(path:String,data: Any?) {
        var bundle = Bundle()
        bundle.putSerializable("data", data as Serializable?)
        ARouter.getInstance().build(path).with(bundle).navigation()
    }
}